package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.service.ISystemLogService;
import cn.wolfcode.crm.query.LogQueryObject;
import cn.wolfcode.crm.query.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("systemLog")
public class SystemLogController {

    @Autowired
    private ISystemLogService systemLogService;

    //由于dataGrid组件返回必须为json,所以跳转界面就分开
    @RequestMapping("view")
    public String view(){
        return "systemLog";
    }

    //页面数据
    @RequestMapping("query")
    @ResponseBody
    public PageResult query(LogQueryObject qo){
        return systemLogService.query(qo);
    }

}
